package com.recipe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (DishLabel)表实体类
 *
 * @author lzk
 * @since 2024-06-18 16:05:17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DishLabel extends TreeNode implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long parentid;

    private String labelname;

    private String labelimage;

    @Override
    public Long getNodeId() {
        return id;
    }

    @Override
    public Long getNodePId() {
        return parentid;
    }




}

